//
//  activityVC.m
//  Notification
//
//  Created by Apple on 2017/3/22.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import "activityVC.h"
#import "HongFile.pch"
@interface activityVC ()

@end

@implementation activityVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"ActivityVC";
    self.view.backgroundColor = [UIColor whiteColor];

    self.activity = [[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite];
    self.activity.center = CGPointMake(SCREEN_WIDTH/2, SCREEN_HEIGHT/2);
#pragma mark-设置大小
    self.activity.transform = CGAffineTransformMakeScale(2, 2);
    [self.view addSubview:self.activity];
    self.activity.color = [UIColor blackColor];
    [self.activity startAnimating];
#pragma mark-设置时间定时器
    [NSTimer scheduledTimerWithTimeInterval:5 target:self selector:@selector(hiden) userInfo:nil repeats:NO];
}
-(void)hiden{
    [self.activity stopAnimating];
    [self.activity setHidesWhenStopped:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
